package alg;
import exception.DataManagerException;

public abstract class SimilarityAlgorithm {

	protected DataManager datamanager;

	public void setDatamanager(DataManager datamanager) {
		this.datamanager = datamanager;
	}

	public DataManager getDatamanager() {
		return this.datamanager;
	}

	protected int common_ratings_size = 0;

	public int getCommonRatingsSize() {
		return common_ratings_size;
	}

	public abstract double eval(int UserId1, int UserId2, DataManager manager)
			throws DataManagerException;

	public double eval(int UserId1, int UserId2) throws DataManagerException {
		return this.eval(UserId1, UserId2, datamanager);
	}

}
